import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

import 'colors.dart';
import 'dimens.dart';

class TextStyles {

  static TextStyle navigationTitle = TextStyle(
    fontSize: Dimens.font_sp18 * font_multiple,
    color: Colors.black,
  );
  static TextStyle navigationTitle_white = TextStyle(
    fontSize: Dimens.font_sp18 * font_multiple,
    color: Colors.white,
  );

  static TextStyle avatar_txt = TextStyle(
    fontSize: Dimens.font_sp26,
    color: Colors.white,
  );

  static TextStyle recommendTitle = TextStyle(
    fontSize: Dimens.font_sp18 * font_multiple,
    color: Colours.text_dark,
    fontWeight: FontWeight.bold,
  );

  static TextStyle recommendMore = TextStyle(
    fontSize: Dimens.font_sp12 * font_multiple,
    color: Colours.text_grey,
  );

  static TextStyle mainNotification = TextStyle(
    fontSize: Dimens.font_sp14 * font_multiple,
    color: Colors.black,
  );

  static TextStyle searchHint = TextStyle(
    fontSize: Dimens.font_sp12 * font_multiple,
    color: Colours.text_grey,
  );

  static TextStyle inputHint = TextStyle(
    fontSize: Dimens.font_sp13 * font_multiple,
    color: Colours.text_grey,
  );

  static TextStyle title = TextStyle(
    fontSize: Dimens.font_sp16 * font_multiple,
    color: Colours.text_dark,
  );
  static TextStyle cccccc_12 = TextStyle(
    fontSize: Dimens.font_sp12 * font_multiple,
    color: Colours.gray_cc,
  );
  static TextStyle title_18 = TextStyle(
    fontSize: Dimens.font_sp18 * font_multiple,
    color: Colours.app_black,
  );
  static TextStyle title_white = TextStyle(
    fontSize: Dimens.font_sp16 * font_multiple,
    color: Colors.white,
  );

  static TextStyle subtitle = TextStyle(
    fontSize: Dimens.font_sp13 * font_multiple,
    color: Colours.text_grey,
  );
  static TextStyle inuptText = TextStyle(
    fontSize: Dimens.font_sp14_67 * font_multiple,
    color: Colours.app_black,
  );
  static TextStyle buttonText = TextStyle(
    fontSize: Dimens.font_sp14_67 * font_multiple,
    color: Colors.white,
  );

  static TextStyle content_red = TextStyle(
    fontSize: Dimens.font_sp14_67 * font_multiple,
    color: Colours.content_red,
  );
  static TextStyle content_gray = TextStyle(
    fontSize: Dimens.font_sp14_67 * font_multiple,
    color: Colours.gray_99,
  );
}


/// 间隔
class Gaps {
  /// 水平间隔
  static Widget hGap3 = new SizedBox(width: Dimens.gap_dp3);
  static Widget hGap5 = new SizedBox(width: Dimens.gap_dp5);
  static Widget hGap8 = new SizedBox(width: Dimens.gap_dp8);
  static Widget hGap10 = new SizedBox(width: Dimens.gap_dp10);
  static Widget hGap12 = new SizedBox(width: Dimens.gap_dp12);
  static Widget hGap15 = new SizedBox(width: Dimens.gap_dp15);
  static Widget hGap20 = new SizedBox(width: Dimens.gap_dp20);
  static Widget hGap30 = new SizedBox(width: Dimens.gap_dp30);
  static Widget hGap40 = new SizedBox(width: Dimens.gap_dp40);
  static Widget hGap50 = new SizedBox(width: Dimens.gap_dp50);

  /// 垂直间隔
  static Widget vGap3 = new SizedBox(height: Dimens.gap_dp3);
  static Widget vGap5 = new SizedBox(height: Dimens.gap_dp5);
  static Widget vGap8 = new SizedBox(height: Dimens.gap_dp8);
  static Widget vGap10 = new SizedBox(height: Dimens.gap_dp10);
  static Widget vGap12 = new SizedBox(height: Dimens.gap_dp12);
  static Widget vGap15 = new SizedBox(height: Dimens.gap_dp15);
  static Widget vGap20 = new SizedBox(height: Dimens.gap_dp20);
  static Widget vGap25 = new SizedBox(height: Dimens.gap_dp25);
  static Widget vGap30 = new SizedBox(height: Dimens.gap_dp30);
  static Widget vGap40 = new SizedBox(height: Dimens.gap_dp40);
  static Widget vGap50 = new SizedBox(height: Dimens.gap_dp50);
  static Widget vGap60 = new SizedBox(height: Dimens.gap_dp60);

  static Widget getHGap(double w) {
    return SizedBox(width: w);
  }

  static Widget getVGap(double h) {
    return SizedBox(height: h);
  }
}
